package com.example.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class AppConfig extends WebMvcConfigurerAdapter {
	/**
	 * Handler里面写虚拟路径
	 * 
	 * Locations里面写绝对路径
	 */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
  
        registry.addResourceHandler("/images/**").addResourceLocations("file:G:/upload/explorer/images/");

    }



}
